#include <stdio.h>
#define input_size 1

typedef enum STATES { 
s1,
} STATES;

typedef enum SIGNALS {
x
} SIGNALS;

void s1_action ()
{
	printf("s1 \n");
}
void x_action ()
{
    printf("x \n");
}
int main()
{
	STATES state = s1;	
	int event = 0;
	SIGNALS input_signals[input_size] = {x};
	for(; event < input_size; event++)
	{
			switch(input_signals[event])
			{
				case x:
				{
					switch(state)
					{
						case s1:
						{
							s1_action();
                            x_action();
							state = s1;
							break;
						}
					}
				break;
				}
			}
		}
	return 0;
}
